﻿#region Imports
using System;
using System.ComponentModel;
using CommonUtilities.Util;
#endregion

namespace CommonUtilities.Exceptions
{
    [Description("Default constructor not available for '{0}'.")]
    public class DefaultCtorNotAvailableException<TClass> : BaseException
        where TClass : class
    {
        #region Declarations
        private static string[] infoParams;
        #endregion

        #region Properties
        public static string Description
        {
            get { return Utilities.GetClassDescription<DefaultCtorNotAvailableException<TClass>>(typeof(TClass)); }
        }
        #endregion

        #region Constructors
        public DefaultCtorNotAvailableException()
            : base() { ; }

        public DefaultCtorNotAvailableException(Exception ex)
            : base(Description, ex) { ; }
        #endregion

        #region Methods
        public override string ToString()
        { return base.ToString(this); }
        #endregion
    }
}
